package com.miao.im.common;

/**
 * @Auther: miaoguoxin
 * @Date: 2021/3/1 13:56
 * @Description:
 */
public class CacheKey {
    public static final String SEMICOLON_DELIMITER = ":";
    /**socket登录 key*/
    public static final String ONLINE_USER_PREFIX = "online_user:";
    public static final String ONLINE_USER_TIMEOUT_PREFIX = "online_user_timeout:";
    public static final long ONLINE_USER_TIMEOUT_SEC = 4 * 60;
    /**web系统登录session key*/
    public static final String WEB_LOGIN_SESSION_PREFIX = "web_login_session:";
    public static final String WEB_LOGIN_DEVICE_NUMBER_PREFIX = "web_login_device_number_session:";
    public static final long WEB_LOGIN_SESSION_TIMEOUT_DAY = 7;
    /**离线消息key前缀*/
    public static final String OFFLINE_MSG_PREFIX = "offline_msg:";
    /**最新离线消息key前缀*/
    public static final String OFFLINE_MSG_COUNTER_PREFIX = "offline_msg_counter:";
    public static final long OFFLINE_MSG_MAX_SIZE = 100;

    /**用户信息缓存前缀key*/
    public static final String USER_INFO_PREFIX = "user_info:";

    /**雪花算法workerId和datacenterId相关*/
    public static final String SNOWFLAKE_WORKER_ID_PREFIX = "snowflake_worker_id:";
    public static final String SNOWFLAKE_DATACENTER_ID_PREFIX = "snowflake_datacenter_id:";
    /**当前的workerId*/
    public static final String SNOWFLAKE_CUR_WORKER_ID = "snowflake_cur_worker_id";
    public static final String SNOWFLAKE_CUR_DATACENTER_ID = "snowflake_cur_datacenter_id";

}
